//
//  NahuoCategoryViewController.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/12.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import UIKit
import URLNavigator

final class NahuoCategoryViewController: UIViewController {
    
    let leftSideCollectionView:UICollectionView
    
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        
        let sideLayout = UICollectionViewFlowLayout()
        leftSideCollectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: sideLayout)
        
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // MARK: - setup views
    
    func setupViews() {
        self.view.addSubview(leftSideCollectionView)
        leftSideCollectionView.snp.makeConstraints { (make) in
            make.left.equalTo(self.view)
            make.top.equalTo(self.view)
            make.bottom.equalTo(self.view)
            make.width.equalTo(90)
        }
        
        
    }
    
}

extension NahuoCategoryViewController:URLNavigable {
    
    convenience init?(navigation: Navigation) {
        self.init(nibName: nil, bundle: nil)
                                                                                                                            }
}
